package start.demo01;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.junit.Test;
import start.demo01.domain.Bean1;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;

public class Test1 {
    final static class tt0{
        private int i=5;
        public int get(){
            return ++i;
        }

    }
    static String a="ws";
    public static void main(String[] args){

    }

    public void ttt(int[] arr){

    }
    @Test
    public void test(){
        System.out.println(23131835d/1024/1024);
    }
    @Test public void t0(){
        //System.out.println(2018-1847);
        if(1<2>>3){
            System.out.println("测试");
        }
        System.out.println(1==12>>3);
    }
    @Test public void trans(){
        Map<String,Object> map=new LinkedHashMap<>();
        map.put("name","小李");
        map.put("password","password");
        map.put("time", "2018-01-12T17:07:05");
        map.put("isThrowException", "true");
        Bean1 bean;//=new Bean1();
        //TransTo.transMap2Bean(map,bean);
        bean=JSONObject.parseObject(JSON.toJSONString(map),Bean1.class);
        System.out.println(bean);

    }

    @Test
    public void t1(){
        if(true){
            if(true){
                System.out.println("1");
                System.out.println("2");
                System.out.println("3");
            }
        }

    }

    @Test
    public void t2(){
        if(false){
            System.out.println("1");
        }
        else if(true){
            System.out.println("2");
        }else{
            System.out.println("3");
        }
    }
    @Test
    public void t3(){
        System.out.println(139/51);
    }

    @Test
    public void t4(){
    }
}
